<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.util.*" %>
<%@ page import="com.chanyachting.emall.util.*"%>
<%@ page import="com.chanyachting.emall.domain.*" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<h2><span class="red">招聘求职</span></h2>
      <div class="tab_menu">
        <ul>
          <li onclick="callOfferServer(0);">人才求职</li>
          <li class="selected">公司招聘</li>
        </ul>
      </div>
      <div class="tab_box">
        <div>
          <div class="hr">
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
              <thead>
                <tr>
                  <logic:notEmpty name="offerSearchForm" property="companyInfor">
                  <th width="12%">招聘职位</th>
                  <th width="33%">公司名称</th>
                  <th width="15%">工作地点</th>
                  <th width="16%">发布时间</th>
                  </logic:notEmpty>
                  <logic:empty name="offerSearchForm" property="companyInfor">
                  <th width="12%">&nbsp;</th>
                  <th width="33%">&nbsp;</th>
                  <th width="15%">&nbsp;</th>
                  <th width="16%">&nbsp;</th>
                  </logic:empty>
                </tr>
              </thead>
		      <tbody>
		      <% int listCount = 0; %>
		      <logic:iterate id="comp" name="offerSearchForm" property="companyInfor" indexId="i">
		      	<logic:iterate id="jobs" name="comp" property="joblistSet">
		      	<% listCount ++; if (listCount < 7) { %>
	            <tr>
	              <% String hasStyle = "class=\"light\""; if(listCount % 2 == 1) { hasStyle = "";}  %>
	              <td <%=hasStyle %>><bean:write name="jobs"  property="jobname"/>&nbsp;</td>
	              <td <%=hasStyle %>><a href="/chinayachting/frontend/hr/companyAletterInf.do?id=${comp.companyId }"><bean:write name="comp" property="companyName" /></a></td>
	              <td <%=hasStyle %>><bean:write name="jobs"  property="jobaddress"/>&nbsp;</td>
	              <td <%=hasStyle %>><bean:define id="createDate" name="comp" property="createDate" />
	              <% String time = createDate.toString(); time = time.substring(0,10); %><%=time %></td>
	            </tr>
	            <% } %>
	            </logic:iterate>
            </logic:iterate>
		      <logic:empty name="offerSearchForm" property="companyInfor"><tr><td colspan="6">本频道无信息！</td></tr></logic:empty>
		    </tbody>
		    </table>
          </div>
          <div class="more_red"><a href="/chinayachting/frontend/hr/offerJob.do" title="more&gt;&gt;"><span>more&gt;&gt;</span></a></div>
        </div>
    </div>